package com.airena.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Spring boot + open api 3.0 + knife4j 配置
 */
@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI api() {
        return new OpenAPI().info(new Info().title("AI角色扮演")
                .description("AI 角色扮演聊天应用")
                .version("v1.0.0"));
    }
}
